#ifndef COMMANDS_INCLUDED
#define COMMANDS_INCLUDED

#define COM_CLASS(code) ((code) & 0x07)
#define COM_SPLIT 0x1
#define COM_MOV_IN_DIR 0x2
#define COM_MOV_OPPOSITE 0x3
#define COM_LOOK 0x4
#define COM_MOV 0x5

#define COM_DIRECTION(code)  ((code) & 0xe0)
#define LEFT         0x00
#define RIGHT        0x20
#define UP           0x40
#define DOWN         0x60

#define COM_OBJ(code)    ((code) & 0xf0)
#define ENEMY 0x00
#define FOOD  0x10

#define BLANK_COMMAND 0x55
#define MAX_COMMAND 0x67

#endif